package com.tcdp.delegates;

import java.util.List;

import com.tcdp.models.Menu;
import com.tcdp.models.Submenu;

public class MenuDelegate extends AbstractDelegate {

	private Menu menuObject;
	
	public MenuDelegate(){
		super();
		this.menuObject = new Menu();
	}
	
	public MenuDelegate(Menu menuObject){
		super();
		this.menuObject = menuObject;
	}

	public Menu getMenuObject() {
		return menuObject;
	}

	public void setMenuObject(Menu menuObject) {
		this.menuObject = menuObject;
	}

	public boolean equals(Object obj) {
		return menuObject.equals(obj);
	}

	public int getMenuId() {
		return menuObject.getMenuId();
	}

	public String getMenuName() {
		return menuObject.getMenuName();
	}

	public String getMenuUrl() {
		return menuObject.getMenuUrl();
	}

	public List<Submenu> getSubmenus() {
		return menuObject.getSubmenus();
	}

	public int hashCode() {
		return menuObject.hashCode();
	}

	public void setMenuId(int menuId) {
		menuObject.setMenuId(menuId);
	}

	public void setMenuName(String menuName) {
		menuObject.setMenuName(menuName);
	}

	public void setMenuUrl(String menuUrl) {
		menuObject.setMenuUrl(menuUrl);
	}

	public void setSubmenus(List<Submenu> submenus) {
		menuObject.setSubmenus(submenus);
	}

	public String toString() {
		return menuObject.toString();
	}
	
}
